<template>
  <div class="head-title" ref = 'video'>
    <van-nav-bar  left-text="返回" :title = title  left-arrow fixed @click-left="onClickLeft">
        <!-- <span @click="goWorkAdd()"  slot="right" >
          <icon name="Add" :w="20" :h="20" ></icon>
        </span> -->
    </van-nav-bar>

    <div>
         <video :src = this.url  controls  :width = widths   height="300"></video>
    </div>

  </div>
</template>

<script>
export default {
  data() {
    return {
      widths:'',//视频的宽度
      url:'', //视频的路径
      title:''//标题
    };
  },

  methods: {
    onClickLeft() {
       const ss = JSON.parse(sessionStorage.getItem('Key'));
       this.$router.push({
        path: "/overWorkNote",
        query: {
          ID: ss.ID,
          id: ss.id
        }
      });
    }
  },
  mounted() {
    console.log(this.$refs.video.offsetWidth);
    this.widths = this.$refs.video.offsetWidth;
  },
  created() {
    this.url = this.$route.query.url;
    this.title = this.$route.query.title;
    this.$emit("header", false);
    this.$emit("footer", false);
  }
};

</script>

<style lang="less" scoped>
.head-title {
  width: 100%;
  height: 40px;
  position: absolute;
  top: 0;
  left: 0;
  margin-bottom: 20px;
  margin-top: 45px;
}
.contain {
  // position: fixed;
  width: 100%;
}
.container {
  // background-color: #07c160;
  background-color: #fff;
  line-height: 45px;
  font-size: 13px;
  // border-bottom-right-radius: 30px;
  // border-bottom-left-radius: 30px;
  // border-top:5px solid #99CC99;
  // background-color:#FF9900;
  // color: #fff;
  // border-bottom:5px solid #99CC99
}
// .van-row {
//   // border-bottom: 1px solid #eee;
// }
.containers {
  margin-top: 10px;
  background-color: #fff;
  height: 50px;
  text-align: center;
  line-height: 50px;
  font-size: 30px;
  color: #e54b4b;
}
.van-row {
  width: 100%;
}
.van-col > span {
  font-size: 13px;
}
.mainTableTilte {
  border-left: 5px solid #34b67a;
  padding-left: 10px;
}
.mainTableNote {
  padding-left: 5px;
}
.plus-icon {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 10px;
}
.mainTableNote {
  font-size: 13px;
}
.mainTableTitle {
  padding-left: 20px;
  font-size: 13px;
}
.debetNote {
  text-align: end;
}
.conote {
  margin-top:5px;
  // background-color: #fff;
  line-height: 40px;
  font-size: 13px;
  margin-bottom: 55px;
  // border-radius: 20px;
}
// .del {
//   // margin-top: 70px;
//   // margin-left: 20px;
// }
.conoteNote {
  // border-radius: 10px;
  background-color: #fff;
  margin-bottom: 5px;
}
.noteAddBtn {
  text-align: center;
  line-height: 50px;
}
.AddBtn {
  width: 80%;
  height: 40px;
}
.del {
  // margin-top: 50px;
  // padding-left: 20p;
  margin-right: 20px;
  background-color: #ff6666;
  color: #fff;
  font-weight: normal;
  letter-spacing: 2px;
  float: right;
  margin-right: 20px;
  margin-top: 5px;
  margin-bottom: 5px;
  position: absolute;
}
.debetNoteSpan {
  padding-left: 20px;
}
.WordlistNoteSpan {
  border-bottom: 1px solid #eee;
}

.van-dropdown-menu {
  height: 45px;
  float: left;
  line-height: 20px;
  font-size: 12px;
  background-color: #eee;
  border-radius: 20px;
  height: 30px;
  margin-top: 10px;
  padding-left: 20px;
  padding-right: 20px;
}
.van-field{
  padding-left: 0 ;
  font-size: 12px;
}
.van-ellipsis{
  font-size: 14px;
}
.van-ellipsis{
  font-size: 13px;
}
.vbtn{
  position: absolute;
  text-align: center;
}
.Nodata{
  text-align: center;
  margin-top: 50px;
}

</style>

